package ssm.mapper;

import org.apache.ibatis.annotations.*;
import ssm.entity.book;

import java.util.List;
@Mapper
public interface BookMapper {
    @Results({
            @Result(property = "type",column = "tid", one=@One(select = "ssm.mapper.TypeMapper.findById"))
    })
    @Select("select * from t_book")
    List<book> findAll();
}
